const Router = require('@koa/router')
const { checkToken, mysecret } = require('../utils/verify')
// const verify =require('../utils/verify.js')
const router = Router({
    prefix: '/user'
})

const userController = require('../controllers/userController');

router.post('/login', userController.login)
router.post('/register', userController.register)
router.post('/uploadImg', userController.uploadImg)
router.post('/updateMsg', checkToken, userController.updateMsg)

module.exports = router.routes()